﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Labaratornaya1
{
    internal class Exam
    {
        public string CourseName { get; set; }
        public int Mark { get; set; }
        public DateTime Date { get; set; }
        public Exam()
        {
            CourseName = "Проектный практикум";
            Mark = 5;
            Date = DateTime.Today;
        }
        public Exam(string courseName, int mark, DateTime date)
        {
            CourseName = courseName;
            Mark = mark;
            Date = date;
        }
        public override string ToString()
        {
            return String.Format("Название предмета:{0} Оценка:{1} Дата сдачи:{2}.{3}.{4}", this.CourseName,this.Mark,this.Date.Day,this.Date.Month,this.Date.Year);
        }
    }
}
